<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	{{include file="../Common/header.html"}}
	<link rel="stylesheet" href="Public/Home/Css/list.css" />
	
<!-- top 结束-->

	<div id='location'>
		<!--这里一定要用section因为foreach无法判断是不是最后一条-->
		
		<a href="./index.php?c=List">全部分类</a>
		{{section loop=$fatherCate name=n}}
			<!--如果循环的是最后一条的话就不给他增加链接-->
			{{if $smarty.section.n.last}}
			&gt;&nbsp;{{$fatherCate[n].title}}&nbsp;&nbsp;
			{{else}}
			&gt;&nbsp;<a href="./index.php?c=List&cid={{$fatherCate[n].cid}}">{{$fatherCate[n].title}}</a>&nbsp;&nbsp;
			{{/if}}
		{{/section}}
	</div>

<!--------------------中部-------------------->
	<div id='center'>
		<div id='left'>
			<div id='cate-list'>
				<p class='title'>按分类查找</p>
				<ul>
					{{foreach from=$sonCate item=v}}
					<li>
						<a href="index.php?c=List&cid={{$v.cid}}">{{$v.title}}</a>
					</li>
					{{/foreach}}
				</ul>
			</div>
			<div id='answer-list'>
				<ul class='ans-sel'>
					<li {{if $smarty.get.w == 0}}class='on'{{/if}}>
						<a href="./index.php?c=List&cid={{if $smarty.get.cid}} {{$smarty.get.cid}} {{else}}0{{/if}}&w=0">待解决问题</a>
					</li>
					<li  {{if $smarty.get.w == 1}}class='on'{{/if}}>
						<a href="./index.php?c=List&cid={{if $smarty.get.cid}} {{$smarty.get.cid}} {{else}}0{{/if}}&w=1">已解决</a>
					</li>
					<li {{if $smarty.get.w == 2}}class='on'{{/if}}>
						<a href="./index.php?c=List&cid={{if $smarty.get.cid}} {{$smarty.get.cid}} {{else}}0{{/if}}&w=2">高悬赏</a>
					</li>
					<li {{if $smarty.get.w == 3}}class='on'{{/if}}>
						<a href="./index.php?c=List&cid={{if $smarty.get.cid}} {{$smarty.get.cid}} {{else}}0{{/if}}&w=3">零回答</a>
					</li>
				</ul>
				<!-- 待解决问题 -->
				<table>
					<tr>
						<th class='t1'>标题</th>
						<th>回答数</th>
						<th>时间</th>
					</tr>
					{{section loop=$askData name=n}}
						<tr>
							<td class='t1 cons'>
								<a href="./index.php?c=Ask&cid={{$askData[n].cid}}&asid={{$askData[n].asid}}">
									<b>{{$askData[n].reward}}</b>{{$askData[n].content}}</a>&nbsp;&nbsp;[{{$askData[n].title}}]
							</td>
							<td>{{$askData[n].answer}}</td>
							<td>{{$askData[n].time|date_format:"%Y-%m-%d"}}</td>
						</tr>
					{{sectionelse}}
					<tr>
						<td colspan="3"><h2>还没有该问题</h2></td>
					</tr>
						
					{{/section}}
				
				</table>

			</div>
		</div>

		<!-- 右侧 -->
{{include file="../Common/right.html"}}
<!-- ---右侧结束---- -->
	</div>
<!--------------------中部结束-------------------->

<!-- 底部 -->

{{include file="../Common/footer.html"}}
<!-- 底部结束 -->